import {Component} from "@angular/core";
import {IonicPage, NavParams, Platform, ViewController} from "ionic-angular";
@IonicPage()
@Component({
  template: `
    <ion-header>
      <ion-toolbar>
        <ion-title>
          请扫描二维码支付
        </ion-title>
        <ion-buttons start>
          <button ion-button (click)="dismiss()">
            <span ion-text color="danger" showWhen="android,windows,ios">取消</span>
            <ion-icon name="md-close" showWhen="android,windows"></ion-icon>
          </button>
        </ion-buttons>
      </ion-toolbar>
    </ion-header>
    <ion-content>
      <div>
        <img src="{{imgsrc}}">
      </div>
    </ion-content>
`,
  selector: 'cash-modals'
})

export class CashModalsPage{
  private imgsrc:any;

  constructor(public platform: Platform,public params: NavParams,public viewCtrl: ViewController){
    this.imgsrc=this.params.get('data').imgsrc;
    console.log(this.imgsrc);
  }

  dismiss() {
    this.viewCtrl.dismiss();
  }
}
